<?php

namespace common\core\actions;

use common\core\base\RestAction;

class DelAction extends RestAction
{
    protected $method  = 'get';

    /**
     * @throws \yii\base\UserException
     */
    public function init()
    {
        if (!\Yii::$app->request->isDelete) {
            $this->invalidRequestException();
        }
    }
}